// CVHome.java

// Start: $Id: home.vm 7202 2005-08-10 16:24:21Z el-vadimo $

package cv;

import java.util.Collection;

import javax.ejb.CreateException;
import javax.ejb.EJBLocalHome;
import javax.ejb.FinderException;

import student.Student;

/**
 * Home interface for the bean CVBean
 * 
 * 	@author Mamadou TOURE
 * 
 *  The CVHome interface defines all the methods that a client can invoke to find, create or destroy
 *  an CVBean.
 *  
 *  Note : 	-It extends the EJBLocalHome interface.
 *  		-We use @SuppressWarnings("unchecked") to avoid the warning about the collection element type.
 */
@SuppressWarnings("unchecked")
public interface CVHome extends EJBLocalHome 
{
    public CV create(String fileName, String fileLocation, boolean auth, Student student) throws CreateException;
    
    public CV findByPrimaryKey(int pk) throws FinderException;
	public Collection findAllCVs() throws FinderException;
}
